#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>


char* my_strncat(char* dest, const char* arr, size_t se)
{
	char* ret = dest;
	while (*dest)
	{
		dest++;
	}
	for (int i = 0; i < se; i++)
	{
		*(dest + i) = *(arr + i);
		if (!*(arr + i))
		{
			return ret;
		}
		
	}
	*(dest + se) = 0;
	return 0;


}
int main()
{
	char dest[20] = "abcd";
	my_strncat(dest, "12345678", 5);
	printf(dest);
	return 0;
}